<app-content-header
  [search]="search"
  (searchClick)="handleSearch()"
>
  <ng-template #action>
    <i nz-icon type="plus"></i>{{ 'BTN.ADD' | translate }}
  </ng-template>
  <ng-template #search>
    <app-search [(data)]="searchSchema" [customItems]="customSchema" (bindSearch)="handleSearch()"></app-search>
  </ng-template>
</app-content-header>

<div class="cil-table-block">
  <st
    #st
    [scroll]="scroll"
    [data]="data"
    [columns]="columns"
    [ps]="ps"
    [pi]="pi"
    [page]="stPage"
    [total]="total"
    [loading]="loading"
    (change)="onChange($event)"
  ></st>
  <div *ngIf="!loading" #btns class="cil-custom-btns">
    <button
      class="cil__custom-btn__whiteblue"
      nz-button
      nzType="primary"
      nzShape="round"
      nzSize="default"
    >
      自定义展示列
    </button>
    <button
      class="cil__custom-btn__lightblue"
      nz-button
      nzType="primary"
      nzShape="round"
      nzSize="default"
    >
      <i nz-icon type="download"></i>
      {{'BTN.EXPORT' | i18n}}
    </button>
  </div>
</div>

